<!-- 详情表格 -->

<template>
  <div>
    <MajorTitle title="关联设备" />

    <WebTable :list="one.device" noPage auto medium>
      <RowText :label="`${CORE.MAP.ASSET}名称`" bind="deviceName" />
      <RowText label="设备类型" bind="deviceTypeName" />
      <RowText label="厂商" bind="manufacturerName" />
      <RowText label="型号" bind="model" />
      <RowText :label="`${CORE.MAP.ASSET}编号`" bind="deviceCode" />
      <RowDict label="设备状态" bind="deviceStatus" :dict="CORE.DICT.STATUS_ONLINE_DEVICE" />
    </WebTable>
  </div>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'DetailTable',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [CORE.mixWeb(), CORE.mixTree('elec', 'elec_')],

  /**
   * 组件导入 (Abc.vue + Abc/index.vue)
   */
  ...CORE.components(require.context('./', true, /vue$/)),
}
</script>
